package com.nut.service.color;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.nut.dao.ColorMapper;
import com.nut.pojo.Color;
import com.nut.pojo.ColorExample;


@Service
public class ColorServiceImpl implements ColorServiceI {

	@Resource
	ColorMapper colorMapper;
	@Override
	public List<Color> getColors(ColorExample colorExample) {
		return colorMapper.selectByExample(colorExample);
	}
	@Override
	public Color queryOne(int id) {
		return colorMapper.selectByPrimaryKey(id);
	}

}
